package com.evil.common.sso.enums;

import com.evil.common.core.enums.BaseEnum;
import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * @author liyang
 */
@Getter
@AllArgsConstructor
public enum RCodeEnum implements BaseEnum {

    /**
     * code - message
     */
    // region 认证    [4000-4999]
    ERROR_UNAUTHENTICATED(4001, "认证失败"),
    ERROR_UNAUTHORIZED(4002, "没有操作权限"),
    CODE_ERROR(4003, "验证码不正确"),
    PASSWORD_ERROR(4004, "账号或密码错误"),
    // endregion

    // region IO操作  [5000-5999]
    FILE_UN_EXIST(5001, "文件/夹不存在"),
    FOLDER_EMPTY(5002, "文件夹为空"),
    TARGET_SAME(5003, "目标位置一致"),
    // endregion
    ;

    /**
     * code
     */
    private final int code;
    /**
     * message
     */
    private final String message;
}
